Repository navigation
[NFC] Fix TAEF string literals in HLSL exec tests - #9004
Conversation
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
Review effort: Lite
Findings: None
What changed in this PR
Fixes Windows build failures in HLSL exec unit tests by ensuring all strings passed to TAEF/WEX verification and test property macros are wide-string literals.
Changes:
- Convert
TEST_METHOD_PROPERTY/TEST_CLASS_PROPERTYstring literals toL"..."inLongVectors.cppandLinAlgTests.cpp. - Convert WEX verification failure messages (e.g.,
VERIFY_FAIL,VERIFY_IS_TRUE) to wide strings across affected tests/utilities. - Align a failing
VERIFY_FAILinLongVectorTestData.hwith WEX’sconst wchar_t*expectations.
| File | Description |
|---|---|
| tools/clang/unittests/HLSLExec/LongVectors.cpp | Switches TAEF test metadata properties to wide strings to avoid narrow→wide build errors. |
| tools/clang/unittests/HLSLExec/LongVectorTestData.h | Fixes VERIFY_FAIL message to use a wide literal. |
| tools/clang/unittests/HLSLExec/LinAlgTests.cpp | Converts a large set of WEX verify messages and TAEF properties to wide strings for consistent compilation. |
| tools/clang/unittests/HLSLExec/HlslExecTestUtils.cpp | Updates verify messages to wide strings in shared test utilities. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Deric C. (@Icohedron) - this isn't the right fix, please revert it. Only extremely old versions of TAEF don't support normal strings. See #7888 |
Several strings passed to TAEF were not wide strings and caused build failures on some machines for the HLSL exec tests depending on the version of TAEF headers used.